//
//  DrawListCell.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/11/16.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "DrawListCell.h"

@interface DrawListCell()

@property (weak, nonatomic) IBOutlet UILabel *nameLab;
@property (weak, nonatomic) IBOutlet UILabel *tellLab;
@property (weak, nonatomic) IBOutlet UILabel *accountNameLab;
@property (weak, nonatomic) IBOutlet UILabel *accountLab;
@property (weak, nonatomic) IBOutlet UIButton *editBtn;



@end

@implementation DrawListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (IBAction)btnClick:(UIButton *)btn
{
    if (self.btnClickBlock) {
        self.btnClickBlock(btn.tag, self.model);
    }
}

- (void)setModel:(DrawListModel *)model
{
    _model = model;
    self.nameLab.text = model.name;
    self.tellLab.text = model.withdrawPhone;
    self.accountNameLab.text = model.typeName;
    self.accountLab.text = model.withdrawNumber;
}

@end
